import { createContext, type Dispatch, type SetStateAction } from 'react';
import type { TMetadata } from '@/types';

export const ConfigAdminContext = createContext<{
  metadata?: TMetadata | null;
  detailItem?: { id: string } | null;
  updateItem?: { id: string } | null;
  setDetailItem?: Dispatch<SetStateAction<{ id: string } | undefined>> | null;
  setUpdateItem?: Dispatch<SetStateAction<{ id: string } | undefined>> | null;
}>({});
